import request from '@/utils/request'

// 获取线索来源列表
export const sourceList = (params: any) => {
  return request({
    url: '/scrm-api/console/clue/source/list',
    params
  })
}
// 新建线索来源
export const sourceCreate = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/source/create',
    method: 'POST',
    data
  })
}
// 编辑线索来源
export const sourceEdit = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/source/edit',
    method: 'POST',
    data
  })
}
// 删除线索来源
export const sourceDel = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/source/del',
    method: 'POST',
    data
  })
}
// 线索来源排序
export const sourceSort = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/source/sort',
    method: 'POST',
    data
  })
}

// 编辑线索来源状态
export const sourceUpdateStatus = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/source/update/status',
    method: 'POST',
    data
  })
}
